package Lecel02_two;

import java.util.ArrayList;
import java.util.Iterator;

public class Test {
    public static void filterChars(ArrayList<String> list) {
        Iterator<String> iterator = list.iterator();
        while (iterator.hasNext()) {
            String str = iterator.next();
            String s = str.replaceAll("[a-zA-Z]", "");
            System.out.println(s);
        }
    }

    public static void main(String[] args) {
        ArrayList<String> strs = new ArrayList<>();
        strs.add("hello123java");
        strs.add("11world555java");
        filterChars(strs);
    }
}
